<?php

// Aug 19, 2010: immanuel192 write this action

if (!defined('EXPONENT')) exit('');

$tag = null;
if (isset($_GET['id'])) {
	$tag = $db->selectObject('cufonmodule_items','id='.intval($_GET['id']));
	if ($tag) {
		$loc = unserialize($tag->location_data);
	}
}

if ($tag) {
	if (exponent_permissions_check('administrate',$loc)) {
		$db->delete('cufonmodule_items','id='.$tag->id);
		exponent_flow_redirect();
	} else {
		echo SITE_403_HTML;
	}
} else {
	echo SITE_404_HTML;
}

?>
